package com.nengchuan.eic.nceconomy.dao;

import com.nengchuan.eic.nceconomy.entity.vo.DutyInfoVO;
import com.nengchuan.eic.nceconomy.entity.vo.DutyVO;
import com.nengchuan.eic.nceconomy.entity.vo.OrgRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 功能描述:
 *
 * @Author: liurui
 * @Date: 2020/5/15 0015 下午 3:14
 */
@Repository
public interface RoleMangeMapper {

    /**
     * 根据单位id获取角色及其下信息
     * @param orgId
     * @return
     */
    List<OrgRole> getRoleListInfo(@Param("orgId") Long orgId);
    List<DutyInfoVO> getDutyList(@Param("orgId") Long orgId);

    /**
     * 根据项目id查询技经专责
     * @param projectId
     * @return
     */
    List<DutyVO> getRoleNceconomyDutyByProjectId(@Param("projectId")Long projectId);

    List<String> getRoleNceconomyDutyByOrgId(@Param("orgId")Long orgId,@Param("roleCode")String roleCode);
}
